package com.itheima.extendsdemo;

/**
 * 2025/4/12 11:12
 */
public class Cat extends Animal{

    private String name;
    public Cat(){
    }
    public Cat(String name){
        this.name = name;
    }

    @Override
    public void sound(){
        System.out.println("喵喵喵");
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                '}';
    }
}
